
CC = g++
CFLAGS = -g 

OBJECTS = \
    generalthread.o 

.cpp.o:
	$(CC) $(INCLUDES) $(CFLAGS) $< -c -o $@

all: threadtest leanthread

threadtest: $(OBJECTS) threadtest.o
	$(CC) $(CFLAGS) $(INCLUDES) $(OBJECTS) threadtest.o -o threadtest

leanthread: leanthread.o
	$(CC) $(CFLAGS) $(INCLUDES) leanthread.o -o leanthread

clean:
	rm -rf *.o threadtest learnthread

